package com.ycjk.dao;

import com.ycjk.domain.Lawyer;

import java.util.List;

/**
 * projectName: practice
 *
 * @author: 李旺
 * time: 2022/12/30 23:46 周五
 * description:
 */
public class LawyerDao {
    /**
     * 新建律师
     * @param lawyer 律师对象，包含有律师的详细信息
     * @return 如果返回1，表示添加成功；返回0，表示添加失败
     */
    public int createLawyer (Lawyer lawyer) {
        System.out.println("创建律师....");
        return 1;
    }

    /**
     * 修改律师
     * @param lawyer 律师对象，包含有律师的详细信息
     * @return 如修改成功，返回1；修改失败，返回0
     */
    public int modifyLawyer (Lawyer lawyer) {
        System.out.println("修改律师...");
        return 1;
    }

    /**
     * 查询所有律师
     * @return 包含所有律师的集合List
     */
    public List<Lawyer> findAllLawyer () {
        System.out.println("查询所有律师...");
        return null;
    }
}
